<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>XenC: Score Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">XenC
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Open-source tool for data selection in NLP</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_score-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Score Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Class holding the XenC scores representation.  
 <a href="class_score.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="score_8h_source.html">score.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a039c99843551e5e4b512ecee99e46617"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_score.html#a039c99843551e5e4b512ecee99e46617">Score</a> ()</td></tr>
<tr class="memdesc:a039c99843551e5e4b512ecee99e46617"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#a039c99843551e5e4b512ecee99e46617">More...</a><br /></td></tr>
<tr class="separator:a039c99843551e5e4b512ecee99e46617"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54ab36a6fdd88696f0176d9534a76883"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_score.html#a54ab36a6fdd88696f0176d9534a76883">~Score</a> ()</td></tr>
<tr class="memdesc:a54ab36a6fdd88696f0176d9534a76883"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default destructor.  <a href="#a54ab36a6fdd88696f0176d9534a76883">More...</a><br /></td></tr>
<tr class="separator:a54ab36a6fdd88696f0176d9534a76883"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8c94c90380d2e17d16d311d298f997c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_score.html#ab8c94c90380d2e17d16d311d298f997c">addScore</a> (double sc)</td></tr>
<tr class="memdesc:ab8c94c90380d2e17d16d311d298f997c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a score to the vector of doubles.  <a href="#ab8c94c90380d2e17d16d311d298f997c">More...</a><br /></td></tr>
<tr class="separator:ab8c94c90380d2e17d16d311d298f997c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4a62e454d7d1bdaf391b8dbd89e2661"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_score.html#aa4a62e454d7d1bdaf391b8dbd89e2661">removeScore</a> (int n)</td></tr>
<tr class="memdesc:aa4a62e454d7d1bdaf391b8dbd89e2661"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes the nth score from the vector of doubles.  <a href="#aa4a62e454d7d1bdaf391b8dbd89e2661">More...</a><br /></td></tr>
<tr class="separator:aa4a62e454d7d1bdaf391b8dbd89e2661"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6933beacc22a83a62181fea9c04a76e3"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_score.html#a6933beacc22a83a62181fea9c04a76e3">getScore</a> (int n) const </td></tr>
<tr class="memdesc:a6933beacc22a83a62181fea9c04a76e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Accessor to the nth score.  <a href="#a6933beacc22a83a62181fea9c04a76e3">More...</a><br /></td></tr>
<tr class="separator:a6933beacc22a83a62181fea9c04a76e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bd3e7c4a3c919d2e3aa55990003c285"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_score.html#a2bd3e7c4a3c919d2e3aa55990003c285">getPrint</a> (int n) const </td></tr>
<tr class="memdesc:a2bd3e7c4a3c919d2e3aa55990003c285"><td class="mdescLeft">&#160;</td><td class="mdescRight">Accessor to the output status of the nth score.  <a href="#a2bd3e7c4a3c919d2e3aa55990003c285">More...</a><br /></td></tr>
<tr class="separator:a2bd3e7c4a3c919d2e3aa55990003c285"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f43b63859389ba011b20d225903a058"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_score.html#a2f43b63859389ba011b20d225903a058">getSize</a> () const </td></tr>
<tr class="memdesc:a2f43b63859389ba011b20d225903a058"><td class="mdescLeft">&#160;</td><td class="mdescRight">Accessor to the size of the scores vector.  <a href="#a2f43b63859389ba011b20d225903a058">More...</a><br /></td></tr>
<tr class="separator:a2f43b63859389ba011b20d225903a058"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3218dfdcc8f31552e0fe93c3733b7f1d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_score.html#a3218dfdcc8f31552e0fe93c3733b7f1d">calibrate</a> ()</td></tr>
<tr class="memdesc:a3218dfdcc8f31552e0fe93c3733b7f1d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calibrates the scores distribution between 0 and 1.  <a href="#a3218dfdcc8f31552e0fe93c3733b7f1d">More...</a><br /></td></tr>
<tr class="separator:a3218dfdcc8f31552e0fe93c3733b7f1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80b2101c021f0f0d495a9a2c937caad7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_score.html#a80b2101c021f0f0d495a9a2c937caad7">inverse</a> ()</td></tr>
<tr class="memdesc:a80b2101c021f0f0d495a9a2c937caad7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inverts the calibrated score distribution (1 - score)  <a href="#a80b2101c021f0f0d495a9a2c937caad7">More...</a><br /></td></tr>
<tr class="separator:a80b2101c021f0f0d495a9a2c937caad7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class holding the XenC scores representation. </p>
<p>This class holds the representation of XenC scores. Can add/remove scores and provides access to them. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a039c99843551e5e4b512ecee99e46617"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Score::Score </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default constructor. </p>

</div>
</div>
<a class="anchor" id="a54ab36a6fdd88696f0176d9534a76883"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Score::~Score </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ab8c94c90380d2e17d16d311d298f997c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Score::addScore </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a score to the vector of doubles. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">sc</td><td>: score to add to the <a class="el" href="class_score.html" title="Class holding the XenC scores representation. ">Score</a> holder </td></tr>
  </table>
  </dd>
</dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_score_ab8c94c90380d2e17d16d311d298f997c_icgraph.png" border="0" usemap="#class_score_ab8c94c90380d2e17d16d311d298f997c_icgraph" alt=""/></div>
<map name="class_score_ab8c94c90380d2e17d16d311d298f997c_icgraph" id="class_score_ab8c94c90380d2e17d16d311d298f997c_icgraph">
<area shape="rect" id="node2" href="class_xen_i_o.html#a6c32040f72b5d39ead7b08874beb65a3" title="Writes a new rescored phrase&#45;table. " alt="" coords="174,5,312,31"/>
<area shape="rect" id="node3" href="class_p_t_scoring.html#a51b8eadcb3b7fa0264c09b3a0908f2c0" title="Function in charge of launching the filtering mode. " alt="" coords="360,5,491,31"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a3218dfdcc8f31552e0fe93c3733b7f1d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Score::calibrate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Calibrates the scores distribution between 0 and 1. </p>

</div>
</div>
<a class="anchor" id="a2bd3e7c4a3c919d2e3aa55990003c285"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Score::getPrint </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Accessor to the output status of the nth score. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">n</td><td>: position of the printing status to get </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the score should be outputted </dd></dl>

</div>
</div>
<a class="anchor" id="a6933beacc22a83a62181fea9c04a76e3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Score::getScore </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Accessor to the nth score. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">n</td><td>: position of the score to return </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>double representing the requested score </dd></dl>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="class_score_a6933beacc22a83a62181fea9c04a76e3_icgraph.png" border="0" usemap="#class_score_a6933beacc22a83a62181fea9c04a76e3_icgraph" alt=""/></div>
<map name="class_score_a6933beacc22a83a62181fea9c04a76e3_icgraph" id="class_score_a6933beacc22a83a62181fea9c04a76e3_icgraph">
<area shape="rect" id="node2" href="class_xen_i_o.html#a6c32040f72b5d39ead7b08874beb65a3" title="Writes a new rescored phrase&#45;table. " alt="" coords="170,5,309,31"/>
<area shape="rect" id="node3" href="class_p_t_scoring.html#a51b8eadcb3b7fa0264c09b3a0908f2c0" title="Function in charge of launching the filtering mode. " alt="" coords="357,5,487,31"/>
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a2f43b63859389ba011b20d225903a058"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int Score::getSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Accessor to the size of the scores vector. </p>
<dl class="section return"><dt>Returns</dt><dd>unsigned int representing the size </dd></dl>

</div>
</div>
<a class="anchor" id="a80b2101c021f0f0d495a9a2c937caad7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Score::inverse </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Inverts the calibrated score distribution (1 - score) </p>

</div>
</div>
<a class="anchor" id="aa4a62e454d7d1bdaf391b8dbd89e2661"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Score::removeScore </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Removes the nth score from the vector of doubles. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">n</td><td>: position of the score to remove in the vector </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/<a class="el" href="score_8h_source.html">score.h</a></li>
<li>src/<a class="el" href="score_8cpp.html">score.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 18 2016 17:22:37 for XenC by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
